There was a potential issue when suspend was inhibited and immediately
uninhibited again before the creation of the inhibitor has finished.
Then the new inhibitor would be kept active.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1927>
else
this._inhibitor = inhibitor;
}
+
+ // Handle uninhibits that happened after the start
+ if (!this._inhibited) {
+ this._inhibitor?.close(null);
+ this._inhibitor = null;
+ }
});
} else {
this._inhibitor?.close(null);